﻿using NUnit.Framework;

namespace SharePoint.Orm.Helpers {
	[TestFixture]
	public class SPNameHelperTest {
		[Test]
		public void TestEncode() {
			string found = SPNameHelper.Decode("Testx0020Space");
			Assert.AreEqual("Test Space", found);
		}

		[Test]
		public void TestDecode() {
			string found = SPNameHelper.Encode("Test Space", true);
			Assert.AreEqual("Test_x0020_Space", found);
		}
	}
}
